package com.elder.business.service;

import java.util.List;

import com.alibaba.fastjson2.JSONObject;
import com.elder.business.domain.ElderlyApartmentBeds;
import com.elder.common.core.page.TableDataInfo;

/**
 * 床位信息Service接口
 * 
 * @author elder
 * @date 2023-11-26
 */
public interface IElderlyApartmentBedsService 
{
    /**
     * 查询床位信息
     * 
     * @param id 床位信息主键
     * @return 床位信息
     */
    public JSONObject selectElderlyApartmentBedsById(Long id);

    /**
     * 查询床位信息列表
     * 
     * @param elderlyApartmentBeds 床位信息
     * @return 床位信息集合
     */
    public List<JSONObject> selectElderlyApartmentBedsList(ElderlyApartmentBeds elderlyApartmentBeds);

    /**
     * 新增床位信息
     * 
     * @param elderlyApartmentBeds 床位信息
     * @return 结果
     */
    public int insertElderlyApartmentBeds(ElderlyApartmentBeds elderlyApartmentBeds);

    /**
     * 修改床位信息
     * 
     * @param elderlyApartmentBeds 床位信息
     * @return 结果
     */
    public int updateElderlyApartmentBeds(ElderlyApartmentBeds elderlyApartmentBeds);

    /**
     * 批量删除床位信息
     * 
     * @param ids 需要删除的床位信息主键集合
     * @return 结果
     */
    public int deleteElderlyApartmentBedsByIds(Long[] ids);

    /**
     * 删除床位信息信息
     * 
     * @param id 床位信息主键
     * @return 结果
     */
    public int deleteElderlyApartmentBedsById(Long id);

    JSONObject adjustElderBedInfo(Long elderId, Long roomId, String bedCode);

    public TableDataInfo getElderlyApartmentBedsList(String elderName, Integer bedStatus, String roomCode, Integer pageNum, Integer pageSize);
}
